a11y: Don't re turn uninitialized memory
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2020 01:06:35 +0000 (21:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2020 01:44:23 +0000 (21:44 -0400)
For some reason, this was now showing up in the
a11y tests as random image sizes in the about
dialog test.

gtk/a11y/gtkimageaccessible.c

index 99a27a658a4bae30ec630963f4ab50e68ff065b6..e299f3d4cc62048a66f9611aab28f2506dae1019 100644 (file)
@@ -309,6 +309,11 @@ gtk_image_accessible_get_image_size (AtkImage *image,
 
   if (gtk_image_get_storage_type (gtk_image) != GTK_IMAGE_EMPTY)
     gtk_image_get_image_size (gtk_image, width, height);
+  else
+    {
+      *height = 0;
+      *width = 0;
+    }
 }
 
 static gboolean